package hello

import "fmt"

func SliceUsage() {
	slice := []int{1, 2, 3, 4, 5}
	fmt.Println(slice)
	fmt.Printf("%p\n", &slice)

	changeSlice(&slice)
	fmt.Println(slice)
}

func changeSlice(s *[]int) *[]int {
	(*s)[1] = 10101
	fmt.Printf("%p\n", &s)
	return s
}
